package com.yanqu.road.logic.bussiness.union.cross;

import com.yanqu.road.entity.union.honors.UnionHistoryHonorsRecordData;
import com.yanqu.road.entity.union.honors.UnionHonorsPointData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class CrossUnionHonorsBussiness {

    public static Map<String, List<UnionHonorsPointData>> getUnionHonorsPointMap() {
        return DaoHelper.getUnionHonorsPointDataDaoImpl().getUnionHonorsPointData();
    }

    public static Map<String, List<UnionHistoryHonorsRecordData>> getUnionHistoryHonorsRecordMap() {
        return DaoHelper.getUnionHistoryHonorsRecordDataDaoImpl().getUnionHistoryHonorsRecordData();
    }

    public static boolean addUnionHonorsPointData(UnionHonorsPointData data) {
        return DaoHelper.getUnionHonorsPointDataDaoImpl().add(data);
    }

    public static boolean updateUnionHonorsPointData(UnionHonorsPointData data) {
        return DaoHelper.getUnionHonorsPointDataDaoImpl().update(data);
    }

    public static boolean addUnionHistoryHonorsRecordData(UnionHistoryHonorsRecordData data) {
        return DaoHelper.getUnionHistoryHonorsRecordDataDaoImpl().add(data);
    }

    public static boolean updateUnionHistoryHonorsRecordData(UnionHistoryHonorsRecordData data) {
        return DaoHelper.getUnionHistoryHonorsRecordDataDaoImpl().update(data);
    }
}
